package com.yipei.business.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yipei.business.domain.MlBtsPoint;
import com.yipei.business.mapper.MlBtsPointMapper;
import com.yipei.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yipei.business.mapper.MlBtsPointImportMapper;
import com.yipei.business.domain.MlBtsPointImport;
import com.yipei.business.service.IMlBtsPointImportService;

/**
 * 导入BTSService业务层处理
 * 
 * @author yipei
 * @date 2024-12-21
 */
@Service
public class MlBtsPointImportServiceImpl extends ServiceImpl<MlBtsPointImportMapper, MlBtsPointImport> implements IMlBtsPointImportService
{
    @Autowired
    private MlBtsPointImportMapper mlBtsPointImportMapper;

    /**
     * 查询导入BTS
     * 
     * @param id 导入BTS主键
     * @return 导入BTS
     */
    @Override
    public MlBtsPointImport selectMlBtsPointImportById(Long id)
    {
        return mlBtsPointImportMapper.selectMlBtsPointImportById(id);
    }

    /**
     * 查询导入BTS列表
     * 
     * @param mlBtsPointImport 导入BTS
     * @return 导入BTS
     */
    @Override
    public List<MlBtsPointImport> selectMlBtsPointImportList(MlBtsPointImport mlBtsPointImport)
    {
        return mlBtsPointImportMapper.selectMlBtsPointImportList(mlBtsPointImport);
    }

    /**
     * 新增导入BTS
     * 
     * @param mlBtsPointImport 导入BTS
     * @return 结果
     */
    @Override
    public int insertMlBtsPointImport(MlBtsPointImport mlBtsPointImport)
    {
        mlBtsPointImport.setCreateTime(DateUtils.getNowDate());
        return mlBtsPointImportMapper.insertMlBtsPointImport(mlBtsPointImport);
    }

    /**
     * 修改导入BTS
     * 
     * @param mlBtsPointImport 导入BTS
     * @return 结果
     */
    @Override
    public int updateMlBtsPointImport(MlBtsPointImport mlBtsPointImport)
    {
        mlBtsPointImport.setUpdateTime(DateUtils.getNowDate());
        return mlBtsPointImportMapper.updateMlBtsPointImport(mlBtsPointImport);
    }

    /**
     * 批量删除导入BTS
     * 
     * @param ids 需要删除的导入BTS主键
     * @return 结果
     */
    @Override
    public int deleteMlBtsPointImportByIds(Long[] ids)
    {
        return mlBtsPointImportMapper.deleteMlBtsPointImportByIds(ids);
    }

    /**
     * 删除导入BTS信息
     * 
     * @param id 导入BTS主键
     * @return 结果
     */
    @Override
    public int deleteMlBtsPointImportById(Long id)
    {
        return mlBtsPointImportMapper.deleteMlBtsPointImportById(id);
    }
}
